﻿function GetChoicesXml(bIsRank) {
    if (!IsSubField) {
        if (bIsRank == "1") {
            return oFieldDetailNode.selectSingleNode("RankDescs").xml;
        } else {
            return oFieldDetailNode.selectSingleNode("Choices").xml;
        }
    } else {
        return oFieldDetailNode.selectNodes("Cols/Field").item(iCurrentColumn).selectSingleNode("FieldDetail/Choices").xml;
    }
}